home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 037a / svgabg.zip / SVGA16.INC < prev    next >
Text File  |  1991-05-04  |  1KB  |  40 lines

  1. (************************************************)
  2. (*                         *)
  3. (*      SuperVGA 16 BGI driver defines    *)
  4. (*        Copyright (c) 1991        *)
  5. (*        Jordan Hargraphix Software        *)
  6. (*                        *)
  7. (************************************************)
  8.  
  9. Uses Dos;
  10.  
  11. type DacPalette16 = array[0..15] of array[0..2] of Byte;
  12.  
  13. (* These are the currently supported modes *)
  14. const
  15.   SVGA320x200x16    = 0;    (* 320x200x16 Standard EGA/VGA *)
  16.   SVGA640x200x16    = 1;    (* 640x200x16 Standard EGA/VGA *)
  17.   SVGA640x350x16    = 2;    (* 640x350x16 Standard EGA/VGA *)
  18.   SVGA640x480x16    = 3;    (* 640x480x16 Standard VGA *)
  19.   SVGA800x600x16    = 4;    (* 800x600x16 SuperVGA/VESA *)
  20.   SVGA1024x768x16    = 5;    (* 1024x768x16 SuperVGA/VESA *)
  21.  
  22. (* Setvgapalette sets the entire 16 color palette *)
  23. (* PalBuf contains RGB values for all 16 colors   *)
  24. (* R,G,B values range from 0 to 63               *)
  25. procedure SetVGAPalette(PalBuf : DacPalette16);
  26. var
  27.   Reg : Registers;
  28.  
  29. begin
  30.   reg.ax := $1012;
  31.   reg.bx := 0;
  32.   reg.cx := 16;
  33.   reg.es := Seg(PalBuf);
  34.   reg.dx := Ofs(PalBuf);
  35.   intr($10,reg);
  36. end;
  37.  
  38.  
  39.  
  40.